package com.isnmp.nms.framework.discover.rstype;

import com.isnmp.common.snmp.mib.MibIPAddrEntry;
import com.isnmp.nms.framework.discover.ResourceInfo;

public class IPAddressType extends SNMPTableBasicMothType {
    public IPAddressType() {
        setResoureTypeName(Messages.getString("IPAddressType.0"));
    }

    public Class getORMappingClass() {
        return MibIPAddrEntry.class;
    }

    public String getResourceSearchMoth() {
        return Messages.getString("IPAddressType.1");
    }

    public ResourceInfo tableMibInfoToResouce(Object paramObject) {
        ResourceInfo localResourceInfo = new ResourceInfo();
        MibIPAddrEntry localMibIPAddrEntry = (MibIPAddrEntry) paramObject;
        localResourceInfo.setResourceRSIDValue(localMibIPAddrEntry.getIpAdEntAddr());
        localResourceInfo.setResourceName(localMibIPAddrEntry.getIpAdEntAddr());
        localResourceInfo.setResourceParam(Messages.getString("IPAddressType.3") + localMibIPAddrEntry.getIpAdEntNetMask());
        localResourceInfo.setResourceDesc(Messages.getString("IPAddressType.4") + localMibIPAddrEntry.getIpAdEntIfIndex());
        return localResourceInfo;
    }
}